using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Urban_Flash.Player.States
{
    public class Idle : FSMState
    {
        public Idle(Player StateController)
            : base(StateController)
        {
            stateID = StateID.Idle;
        }
        public override void DoBeforeEntering()
        {

        }
       
        public override void Execute()
        {

        }


        public override void DoBeforeLeaving()
        {

        }


        public override void PlayerInput(object sender, PlayerStateEventArgs e)
        {
            Player player = (Player)sender;
            if (e.action == Dependencies.ActionKey.RunLeft || e.action == Dependencies.ActionKey.RunRight)
                player.StateMachine.PerformTransition(Transition.StartRunning);
        }
    }
}
